import axios from 'axios'
const instance = axios.create({
    baseURL: 'http://kumanxuan1.f3322.net:8001',
    timeout: 8000,
})
instance.interceptors.request.use(
    function (config) {
        let token = sessionStorage.getItem("token")
       if(token){
           config.headers['X-Nideshop-Token'] = token
       }
        return config
    },
    function (error) {
        return Promise.reject(error)
    }
)
export default instance
